package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 集成工具对象 plugin
 * 
 * @author ruoyi
 * @date 2025-06-13
 */
public class Plugin extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    @Excel(name = "")
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 插件名称 */
    @Excel(name = "插件名称")
    private String pluginName;

    /** 插件地址 */
    @Excel(name = "插件地址")
    private String pluginUrl;

    /** 插件状态（0未激活；1激活） */
    @Excel(name = "插件状态", readConverterExp = "0=未激活；1激活")
    private Integer pluginStatus;

    /** 统一认证对应的插件的用户名 */
    @Excel(name = "统一认证对应的插件的用户名")
    private String pluginUsername;

    /** 统一认证对应的插件的认证 */
    @Excel(name = "统一认证对应的插件的认证")
    private String pluginToken;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setPluginName(String pluginName) 
    {
        this.pluginName = pluginName;
    }

    public String getPluginName() 
    {
        return pluginName;
    }

    public void setPluginUrl(String pluginUrl) 
    {
        this.pluginUrl = pluginUrl;
    }

    public String getPluginUrl() 
    {
        return pluginUrl;
    }

    public void setPluginStatus(Integer pluginStatus) 
    {
        this.pluginStatus = pluginStatus;
    }

    public Integer getPluginStatus() 
    {
        return pluginStatus;
    }

    public void setPluginUsername(String pluginUsername) 
    {
        this.pluginUsername = pluginUsername;
    }

    public String getPluginUsername() 
    {
        return pluginUsername;
    }

    public void setPluginToken(String pluginToken) 
    {
        this.pluginToken = pluginToken;
    }

    public String getPluginToken() 
    {
        return pluginToken;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("pluginName", getPluginName())
            .append("pluginUrl", getPluginUrl())
            .append("pluginStatus", getPluginStatus())
            .append("pluginUsername", getPluginUsername())
            .append("pluginToken", getPluginToken())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
